//
//  SmartItem.m
//  KEREN
//
//  Created by chenliang on 2023/8/24.
//

#import "SmartItem.h"

@implementation SmartItem

+(SmartItem *)createSmartItem:(NSString *)title imgName:(NSString *)imgName type:(SmartType)type{
    SmartItem *item = [[SmartItem alloc] init];
    item.title = title;
    item.imgName = imgName;
    item.type = type;
    return item;
}

+(SmartItem *)createSmartItem:(NSString *)title sub_title:(NSString *)sub_title imgName:(NSString *)imgName type:(SmartType)type{
    SmartItem *item = [SmartItem createSmartItem:title  imgName:imgName type:type];
    item.sub_title = sub_title;
    return item;
}

@end
